package by.siarhei.java.tij.access.factory;

/**
 * @author Siarhei Shchahratsou <s.siarhei@gmail.com>
 * @since 09.03.14
 */
public class ShapeFactory {
    private static Shape[] shapes = new Shape[] {
            new Rectangle(),
            new Square(),
            new Triangle()
    };

    private static void about(Shape shape) {
        System.out.println(shape.name());
    }

    public static void main(String[] args) {
        for (Shape shape : shapes) {
            about(shape);
        }
    }
}
